package edu.sctu.jarime.may.day20150525.Change;

/**
 * Created by user19 on 2015/5/25.
 */
public class TextOne {
    public static void main(String[] args) {

        A a1 = new A();
        A a2 = new B();
        B b = new B();
        C c = new C();
        D d = new D();

        a1.method(a2);
        a1.method(d);
        System.out.println(a1.method(a2));
        System.out.println(a1.method(d));
    }
}
